package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * 订单详细批量插入数据
     */
    void insert(List<OrderDetail> orderDetatilList);


    @Select("select * from order_detail where order_id = #{id}")
    List<OrderDetail> getById(Long id);

    List<OrderDetail> getByIdAndNumber(Long userId, String number);
}
